<?php
include_once('common/header.php');
if($AppUI->id <= 0 || (isset($_SESSION['product']) && (($_SESSION['product']&1<<1) == 0))) {
	$this->_redirect(HOST_BACKEND);
}
$objCategory 	= new Category();
$objSlideshow	= new Slideshow();
$this->view->arrAlbum	 = $objSlideshow->getAlbumForCombo(PRODUCT_TYPE);
$this->view->arrCategory = $objCategory->getParent(PRODUCT_TYPE);
if(isset($_SESSION['PRODUCT_POST']['pcategoryid'])) {
	$this->view->arrSub	 = $objCategory->getChild($_SESSION['PRODUCT_POST']['pcategoryid']);
}
if(isset($_SESSION['PRODUCT_POST']['ptbfeature'])) {
	$strJson	= str_replace('\\','',$_SESSION['PRODUCT_POST']['ptbfeature']);	
	$this->view->arrFeatures = json_decode($strJson);
}